ServerSrcName=servermain
ServerExt=c
ServerTarget=Server

ClientSrcName=clientmain
ClientExt=c
ClientTarget=Client

CC=gcc
CPP=g++

all: ServerAll ClientAll

ServerAll:
	$(CC) $(ServerSrcName).$(ServerExt) -o $(ServerTarget) -lpthread

ClientAll:
	$(CC) $(ClientSrcName).$(ClientExt) -o $(ClientTarget) -lpthread

clean:
	rm $(ServerTarget)
	rm $(ClientTarget)
